<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
   
    <div id="app"><a href="http://www.baidu.com" @click="handleCilck('开',$event)">有本事你点开我 ！！</a></div>
    <script type="text/javaScript" charset="UTF-8" src="/JS文件/vue.js"></script>
    <script>
        var vm = new Vue({
            el:"#app",
            methods:{
                handleCilck(message,event){
                  
                    event.preventDefault();
                    window.alert(message);
                    console.log(event);
                }
            }
        })
    </script>
</body>
</html>